import service from '@/utils/request'

export const userTaskDetail = (taskId: string,userId:number) => {
	return service.get('/sm/task/stu/detail',  { params: { taskId,userId } })
	
}

export const saveTasktDetail = (dataForm: any) => {
	return service.post('/sm/task/stu/save/task',  dataForm)
	
}
export const submitTasktDetail = (dataForm: any) => {
	return service.post('/sm/task/stu/submit/task',  dataForm)
	
}
// 创建评估作业
export const saveEventTask = (taskId: string) => {
	return service.get('/sm/task/stu/saveEventTask',  { params: { taskId } })
	
}

// 学生首页
export const getStuHome = () => {
	return service.get('/sm/task/stu/home')
}

// 学生作业-教师端
export const getDataList = (dataForm: any) => {
	return service.get('/sm/task/stu/admin/page',dataForm)
}

// 学生作业
export const getDataStuList = (dataForm: any) => {
	return service.get('/sm/task/stu/page',{ params: dataForm })
}